<?php
include_once('_PATH.php');

include_once( $_UTILSPATH . "/facebook.php");

class FacebookUIHandler {

	private $fb;

	function __construct( & $_fb ) {
		$this->fb = & $_fb;
		$this->init();
	}

	function init() {
		$this->fb->require_login();
	}
	
	function render() {
		echo $this->fb->user;
	}

}

$facebook = & getFacebookClient();

if ( ! ( isset( $_REQUEST['offl'] ) ) ){
	$fbUI = new FacebookUIHandler( $facebook );
	$fbUI->render();
}
?>